package xin.cymall.dynamic;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

public class MultipleDataSourceToChoose extends AbstractRoutingDataSource {

	/**
     * @desction: 根据Key获取数据源的信息，上层抽象函数的钩子
     * @date: 2017/8/21
     * @param:
     * @return:
     */
    @Override
    protected Object determineCurrentLookupKey() {
        return HandlerDataSource.getDataSource();
    }

}
